import service from '@/api/http'
const follow_record = {

    // 获取商机跟进记录
    getBusinessOpportunityRecord(p) {
        return service.get('/follow_record', {
            params: p
        })
    },

    // 添加商机跟进记录
    addBusinessOpportunityRecord(p) {
        return service.put('/follow_record/add', p)
    },

    // 编辑商机跟进记录
    editBusinessOpportunityRecord(p) {
        return service.post('/follow_record/update', p)
    },

    // 删除商机跟进记录
    deleteBusinessOpportunityRecord(p) {
        return service.delete('/follow_record/delete', {
            params: p
        })
    },

    // 获取跟进方式
    getFollowMethod() {
        return service.get('/follow_record/follow_way')
    },

    // 获取查询项客户信息
    getQueryCust() {
        return service.get('/follow_record/cust')
    },

    // 获取查询项跟进人员
    getQueryEmp() {
        return service.get('/follow_record/emp')
    },

    // 获取查询项跟进方式
    getQueryMethod() {
        return service.get('/follow_record/method')
    },
    
    // AI生成跟进建议
    suggestion(p) {
        return service.post('/follow_record/suggestion',{
            demand_desc: p.result
        })
    },

}

export default follow_record
